package org.clever.arkdemo;

import org.springframework.beans.factory.SmartInitializingSingleton;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

@SpringBootApplication
public class ArkDemoApplication implements SmartInitializingSingleton {

    public static void main(String[] args) {
        SpringApplication.run(ArkDemoApplication.class, args);
    }

    @Autowired
    Environment env;
    @Override
    public void afterSingletonsInstantiated() {
        String a = env.getProperty("abc");
        System.out.println(a);

    }
}
